create sequence "TagDoctor_TagDoctorId_seq";

CREATE TABLE "TagDoctor"
(
    "TagDoctorId" bigint NOT NULL DEFAULT nextval('"TagDoctor_TagDoctorId_seq"'::regclass),
    "ProviderId" bigint not null ,
	"Designation" character varying(255) ,
	"DoctorUnitMasterId" bigint not null,
    CONSTRAINT "TagDoctor_pkey" PRIMARY KEY ("TagDoctorId"),
    CONSTRAINT "FK_TagDoctor_ProviderId" FOREIGN KEY ("ProviderId")
        REFERENCES public."Provider" ("ProviderId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION,
	CONSTRAINT "FK_TagDoctor_DoctorUnitMasterId" FOREIGN KEY ("DoctorUnitMasterId")
        REFERENCES public."DoctorUnitMaster" ("DoctorUnitMasterId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
)